package ooDay02;

public class InterfaceDemo {
    public static void main(String[] args) {
//        inter a = new inter() {
//            @Override
//            public void test1() {
//
//            }
//
//            @Override
//            public void test2() {
//
//            }
//        };
        //inter a = new inter();
        interImpl intdemo = new interImpl();
        intdemo.test1();

        abst ab =new abst() {

            @Override
            void abs() {

            }
        };
    }
}

interface inter{
    void test1();
    abstract void test2();
    //int test3(){};
}

interface inter2{
    void test3();
}

abstract class abst{
abst(){
    System.out.println("abst");
};
 abstract void abs();
}

class interImpl implements inter{
    @Override
    public void test1() {
        System.out.println("test1");
    }

    @Override
    public void test2() {
        System.out.println("test2");
    }
}

class interAndExtend extends abst implements inter,inter2{

    @Override
    public void test1() {

    }

    @Override
    public void test2() {

    }

    @Override
    public void test3() {

    }

    @Override
    void abs() {

    }
}
